package com.brainhealth.common.enums;

import java.util.ArrayList;
import java.util.List;

public enum ReportType implements BaseEnum {
    EveryTime(0, "每次"), Time_7(1, "阶段7次报告"), Time_28(2, "28次报告"), First_7(3, "第一次7次报告");
    private final int code;
    private final String info;

    ReportType(int code, String info) {
        this.code = code;
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    /**
     * 获取报告编码列表
     * @return
     */
    public static List<Integer> getReportTypeCodeList() {
        List<Integer> list = new ArrayList<>(3);
        for (ReportType reportType : ReportType.values()) {
            list.add(reportType.code);
        }
        return list;
    }
}
